const mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/test');

const Cat = mongoose.model('Cat', { name: String });

// const kitty = new Cat({ name: 'Zildjian' });
// kitty.save().then(() => console.log('meow'));

for (var i = 0; i< 100; i++) {
	var kitty = new Cat({name: '喵喵' + i});

	kitty.save().then(() => {
		console.log('meow');
	})
}